<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>Document</title>
    <link rel="stylesheet" href="css/base.css" />
    <link rel="stylesheet" href="css/element.css" />
    <link rel="stylesheet" href="css/main.css" />
</head>

<body>
    <div class="top-bar">
        <div class="container clearfix">
            <p class="left">
                <a href="">保单验证</a> |
                <a href="">信息披露</a> |
                <a href="">关于我们</a> |
                <a href="">联系我们</a>
            </p>
            <p class="right">
                <a href="">登陆</a> |
                <a href="">注册</a>
            </p>
        </div>
    </div>
    <div class="top-header">
        <div class="container clearfix">
            <a href="" class="logo">
                <img src="images/logo.png" alt="" width="177" height="47" />
            </a>
            <ul class="header-nav">
                <li><a class="on" target="_self" href="">首 页</a></li>
                <li><a target="_self" href="">全部保险产品</a></li>
                <li><a target="_self" href="">保险理赔</a></li>
                <li><a target="_self" href="">企业团险</a></li>
                <li><a target="_self" href="">我的保单</a></li>
            </ul>
            <div class="header-rnav right">
                <a href="">
                    <i class="i1"></i>
                    定制
                </a>
                <a href="">
                    <i class="i2"></i>
                    公众号
                </a>
            </div>
        </div>
    </div>
    <div class="login-wrapper">
        <div class="login-form" id="loginCtrl">
            <h2 class="title">丰收经纪</h2>
            <div class="bd">
                <div class="item" :class="{on:focusItem=='phone'}">
                    <i class="phone"></i>
                    <input @focus="focusItem='phone'" @blur="focusItem=''" type="text" placeholder="手机号码" />
                </div>
                <div class="item" :class="{on:focusItem=='psw'}">
                    <i class="psw"></i>
                    <input @focus="focusItem='psw'" @blur="focusItem=''" type="password" placeholder="登陆密码" />
                </div>
                <div class="item" style="width: 190px" :class="{on:focusItem=='code'}">
                    <i class="code"></i>
                    <input @focus="focusItem='code'" @blur="focusItem=''" type="text" placeholder="验证码" />
                    <img :src="imgSrc" @click="timestamp=new Date().getTime()" alt="验证码" />
                </div>
                <p class="item-text clearfix">
                    <a href="" class="left">忘记密码？</a>
                    <a href="" class="right">立即注册</a>
                </p>
                <div class="item-btn">
                    <el-button type="primary" @click="submit">
                        登陆
                    </el-button>
                </div>
            </div>
        </div>
    </div>

    <footer class="footer" style="margin: 0;border: none;padding-top: 0;">
        <div class="copyright">
            <p>
                <a rel="nofollow" href="http://www.iachina.cn/" target="_blank">中国保险行业协会</a> |
                <a rel="nofollow" href="https://iask.sina.com.cn/search?searchWord=%E4%BF%9D%E9%99%A9&record=1" target="_blank">新浪爱问保险</a> |
                <a rel="nofollow" href="https://insurance.cngold.org/" target="_blank">金投保险</a> |
                <a rel="nofollow" href="" target="_blank">腾讯保险</a> |
                <a rel="nofollow" href="http://www.rmic.cn/" target="_blank">中国保险网</a>
            </p>
            <p>Copyright ©2013-2018 深圳市康达尔（集团）股份有限公司 粤ICP备08029152号</p>
        </div>
    </footer>


    <script src="js/jquery.js"></script>
    <script src="js/vue.js"></script>
    <script src="js/element.js"></script>
    <script>
        var vmode = new Vue({
            el: '#loginCtrl',

            data: function(){
                return {
                    timestamp:'',
                    focusItem:'',

                    form:{
                        phone:'',
                        psw:'',
                        code:''
                    }
                }
            },

            computed:{
                imgSrc: function(){
                    return 'http://www.thinkphp.cn/member/verify.html?_='+this.timestamp
                }
            },

            methods:{
                submit: function(){
                    if(!vmode.phone){
                        vmode.$message({
                            showClose: true,
                            message: '请输入手机号',
                            type: 'error'
                        })
                        return;
                    }
                    if(!vmode.psw){
                        vmode.$message({
                            showClose: true,
                            message: '请输入登陆密码',
                            type: 'error'
                        })
                        return;
                    }
                    if(!vmode.phone){
                        vmode.$message({
                            showClose: true,
                            message: '请输入图形验证码',
                            type: 'error'
                        })
                        return;
                    }
                }
            }
        })
    </script>
</body>

</html>